﻿using System;
using System.Diagnostics.Contracts;

namespace Wombat.Core.Services.Pattern
{
    internal class GuidPatternDefinition : PatternDefinition
    {
        private readonly Guid _guid;
        public GuidPatternDefinition(Guid guid)
        {
            Contract.Assert(guid != null && guid != Guid.Empty);
            _guid = guid;
        }

        internal override Guid GetGuid()
        {
            return _guid;
        }
    }
}